<template>
  <div>counter: {{ $store.state.counter }}</div>
  <div>doubleCounter: {{ doubleCounter }}</div>
</template>

<script lang="ts">
import { defineComponent } from 'vue'
export default defineComponent({
  name: 'ComTest',
  computed: {
    doubleCounter (): number {
      return this.$store.state.counter * 2
    }
  }
})
</script>